package com.xbfinal.eduorder.client;

import com.xbfinal.commonUtils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Title: UcenterClient
 * @Author 笑霸fianl
 * @Package com.xbfinal.eduorder.client
 * @Date 2023/3/11 12:40
 * @描述: 远程调用用户的接口
 */
@Component
@FeignClient("service-ucenter")//远程调用的服务名字
public interface UcenterClient {

    @PostMapping("/educenter/member/getUserInfoOrder/{id}")
    public UcenterMemberOrder getUserInfoOrder(@PathVariable("id") String id);
}
